const Router = require('koa-router');
const router = new Router({ prefix: '/moment' });
const auth = require('@/middleware/auth');
const MomentController = require('@/controller/moment');


router.post('/add', auth, MomentController.addMoment);
router.get('/list',  MomentController.getMomentList);
// router.get('/:id', MomentController.getMomentDetail);
router.post('/like', auth, MomentController.likeMoment);
router.post('/unlike', auth, MomentController.unlikeMoment);
router.post('/comment', auth, MomentController.addComment);
router.post('/comment/list', MomentController.getCommentList);
router.post('/comment/delete', auth, MomentController.deleteComment);
router.post('/delete', auth, MomentController.deleteMoment);

module.exports = router;